home *** CD-ROM | disk | FTP | other *** search
/ PD ROM 1 / PD ROM Volume I - Macintosh Software from BMUG (1988).iso / Stacks / Updates⁄New / TicklerMaster™ File / background_2728.txt < prev    next >
Encoding:
Text File  |  1988-06-01  |  16.7 KB  |  782 lines

  1. -- background: 2728 from stack: in
  2. -- bmap block id: 16574
  3. -- flags: 4000
  4. -- background id: 0
  5. -- name: To Do
  6. ----- HyperTalk script -----
  7. on openStack
  8.   visual barn door open very slow
  9.   if field "date" is the long date then pass openStack
  10.   else update the long date
  11. end openStack
  12.  
  13.  
  14. on openBackground
  15.   get field id 6
  16.   put it into thisDay
  17.   get the long date
  18.   if it = thisDay then
  19.     hide background button id 19  --background id 19 is button"Today"
  20.   else
  21.     show background button id 19
  22.   end if
  23.   hide menubar
  24. end openBackground
  25.  
  26. on update theDate
  27.   set cursor to 4
  28.   put empty into field "Actions"
  29.   put empty into field "Done"
  30.   put empty into field "Links"
  31.   get theDate
  32.   put it into field "Date"
  33.   convert it to seconds
  34.   put it into today
  35.   put 60*60*24 into oneDay
  36.   put 1 into lineNumber
  37.   repeat with x = 2 to the number of cards
  38.     get (field id 1 of card x)
  39.     convert it to seconds
  40.     if it is empty then next repeat
  41.     if it <= today and (field "Completed" of card x) is empty then
  42.       put (field "Abstract" of card x) into line lineNumber of field "Actions"
  43.       repeat (today - it) div oneDay times
  44.         put "‚Ä¢" before line lineNumber of field "Actions"
  45.       end repeat
  46.       put (the name of card x) into line lineNumber of field "Links"
  47.       add 1 to lineNumber
  48.     end if
  49.   end repeat
  50. end update
  51.  
  52. on mouseUp
  53.   if the name of the target contains "Go" then
  54.     get second word of the short name of the target
  55.     go to line it of field "Links"
  56.   end if
  57. end mouseUp
  58.  
  59. on closeStack
  60.   visual barn door close very slow
  61. end closeStack
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68. -- part 6 (field)
  69. -- low flags: 00
  70. -- high flags: 0000
  71. -- rect: left=103 top=44 right=65 bottom=381
  72. -- title width / last selected line: 0
  73. -- icon id / first selected line: 0 / 0
  74. -- text alignment: 1
  75. -- font id: 5
  76. -- text size: 14
  77. -- style flags: 0
  78. -- line height: 18
  79. -- part name: Date
  80.  
  81.  
  82. -- part 16 (field)
  83. -- low flags: 00
  84. -- high flags: 4002
  85. -- rect: left=56 top=91 right=286 bottom=430
  86. -- title width / last selected line: 0
  87. -- icon id / first selected line: 0 / 0
  88. -- text alignment: 0
  89. -- font id: 3
  90. -- text size: 10
  91. -- style flags: 0
  92. -- line height: 13
  93. -- part name: Actions
  94.  
  95.  
  96. -- part 17 (field)
  97. -- low flags: 01
  98. -- high flags: 4002
  99. -- rect: left=430 top=91 right=286 bottom=455
  100. -- title width / last selected line: 0
  101. -- icon id / first selected line: 0 / 0
  102. -- text alignment: 0
  103. -- font id: 3
  104. -- text size: 10
  105. -- style flags: 0
  106. -- line height: 13
  107. -- part name: Done
  108. ----- HyperTalk script -----
  109. on mouseUp
  110.   put (item 2 of the clickLoc - 79) div 12 into lineNumber
  111.   if line lineNumber of field "Actions" is empty then exit mouseUp
  112.   if line lineNumber of field "Done" is empty then
  113.     put "‚àö" into line lineNumber of field "Done"
  114.     set lockScreen to true
  115.     push card
  116.     go to line lineNumber of field "Links"
  117.     put (the abbr date & " at " & the time) into field "completed"
  118.     pop card
  119.     set lockScreen to false
  120.     exit mouseUp
  121.   else
  122.     put empty into line lineNumber of field "Done"
  123.     set lockScreen to true
  124.     push card
  125.     go to line lineNumber of field "Links"
  126.     put empty into field "Completed"
  127.     pop card
  128.     set lockScreen to false
  129.   end if
  130. end mouseUp
  131.  
  132.  
  133.  
  134. -- part 18 (field)
  135. -- low flags: 81
  136. -- high flags: 4007
  137. -- rect: left=190 top=91 right=286 bottom=432
  138. -- title width / last selected line: 0
  139. -- icon id / first selected line: 0 / 0
  140. -- text alignment: 0
  141. -- font id: 3
  142. -- text size: 10
  143. -- style flags: 0
  144. -- line height: 13
  145. -- part name: Links
  146.  
  147.  
  148. -- part 19 (button)
  149. -- low flags: 80
  150. -- high flags: A000
  151. -- rect: left=324 top=284 right=327 bottom=404
  152. -- title width / last selected line: 0
  153. -- icon id / first selected line: 14953 / 14953
  154. -- text alignment: 1
  155. -- font id: 0
  156. -- text size: 12
  157. -- style flags: 0
  158. -- line height: 16
  159. -- part name: Go to Today 
  160. ----- HyperTalk script -----
  161. on mouseUp
  162.   visual wipe left
  163.   update the long date
  164.   hide bkgnd button id 19  --"Go to Today"
  165. end mouseUp
  166.  
  167.  
  168.  
  169. -- part 21 (button)
  170. -- low flags: 00
  171. -- high flags: 0006
  172. -- rect: left=32 top=91 right=103 bottom=57
  173. -- title width / last selected line: 0
  174. -- icon id / first selected line: 0 / 0
  175. -- text alignment: 1
  176. -- font id: 0
  177. -- text size: 12
  178. -- style flags: 0
  179. -- line height: 16
  180. -- part name: go 1
  181.  
  182.  
  183. -- part 22 (button)
  184. -- low flags: 00
  185. -- high flags: 2006
  186. -- rect: left=32 top=103 right=117 bottom=57
  187. -- title width / last selected line: 0
  188. -- icon id / first selected line: 0 / 0
  189. -- text alignment: 1
  190. -- font id: 0
  191. -- text size: 12
  192. -- style flags: 0
  193. -- line height: 16
  194. -- part name: go 2
  195.  
  196.  
  197. -- part 23 (button)
  198. -- low flags: 00
  199. -- high flags: 2006
  200. -- rect: left=32 top=117 right=130 bottom=57
  201. -- title width / last selected line: 0
  202. -- icon id / first selected line: 0 / 0
  203. -- text alignment: 1
  204. -- font id: 0
  205. -- text size: 12
  206. -- style flags: 0
  207. -- line height: 16
  208. -- part name: go 3
  209.  
  210.  
  211. -- part 24 (button)
  212. -- low flags: 00
  213. -- high flags: 2006
  214. -- rect: left=32 top=130 right=143 bottom=57
  215. -- title width / last selected line: 0
  216. -- icon id / first selected line: 0 / 0
  217. -- text alignment: 1
  218. -- font id: 0
  219. -- text size: 12
  220. -- style flags: 0
  221. -- line height: 16
  222. -- part name: go 4
  223.  
  224.  
  225. -- part 25 (button)
  226. -- low flags: 00
  227. -- high flags: 2006
  228. -- rect: left=32 top=142 right=156 bottom=57
  229. -- title width / last selected line: 0
  230. -- icon id / first selected line: 0 / 0
  231. -- text alignment: 1
  232. -- font id: 0
  233. -- text size: 12
  234. -- style flags: 0
  235. -- line height: 16
  236. -- part name: go 5
  237.  
  238.  
  239. -- part 26 (button)
  240. -- low flags: 00
  241. -- high flags: 2006
  242. -- rect: left=32 top=156 right=170 bottom=57
  243. -- title width / last selected line: 0
  244. -- icon id / first selected line: 0 / 0
  245. -- text alignment: 1
  246. -- font id: 0
  247. -- text size: 12
  248. -- style flags: 0
  249. -- line height: 16
  250. -- part name: go 6
  251.  
  252.  
  253. -- part 27 (button)
  254. -- low flags: 00
  255. -- high flags: 2006
  256. -- rect: left=32 top=170 right=183 bottom=57
  257. -- title width / last selected line: 0
  258. -- icon id / first selected line: 0 / 0
  259. -- text alignment: 1
  260. -- font id: 0
  261. -- text size: 12
  262. -- style flags: 0
  263. -- line height: 16
  264. -- part name: go 7
  265.  
  266.  
  267. -- part 28 (button)
  268. -- low flags: 00
  269. -- high flags: 2006
  270. -- rect: left=32 top=183 right=195 bottom=57
  271. -- title width / last selected line: 0
  272. -- icon id / first selected line: 0 / 0
  273. -- text alignment: 1
  274. -- font id: 0
  275. -- text size: 12
  276. -- style flags: 0
  277. -- line height: 16
  278. -- part name: go 8
  279.  
  280.  
  281. -- part 29 (button)
  282. -- low flags: 00
  283. -- high flags: 2006
  284. -- rect: left=32 top=195 right=209 bottom=56
  285. -- title width / last selected line: 0
  286. -- icon id / first selected line: 0 / 0
  287. -- text alignment: 1
  288. -- font id: 0
  289. -- text size: 12
  290. -- style flags: 0
  291. -- line height: 16
  292. -- part name: go 9
  293.  
  294.  
  295. -- part 30 (button)
  296. -- low flags: 00
  297. -- high flags: 2006
  298. -- rect: left=32 top=209 right=222 bottom=57
  299. -- title width / last selected line: 0
  300. -- icon id / first selected line: 0 / 0
  301. -- text alignment: 1
  302. -- font id: 0
  303. -- text size: 12
  304. -- style flags: 0
  305. -- line height: 16
  306. -- part name: go 10
  307.  
  308.  
  309. -- part 31 (button)
  310. -- low flags: 00
  311. -- high flags: 2006
  312. -- rect: left=32 top=221 right=235 bottom=57
  313. -- title width / last selected line: 0
  314. -- icon id / first selected line: 0 / 0
  315. -- text alignment: 1
  316. -- font id: 0
  317. -- text size: 12
  318. -- style flags: 0
  319. -- line height: 16
  320. -- part name: go 11
  321.  
  322.  
  323. -- part 32 (button)
  324. -- low flags: 00
  325. -- high flags: 2006
  326. -- rect: left=32 top=234 right=248 bottom=57
  327. -- title width / last selected line: 0
  328. -- icon id / first selected line: 0 / 0
  329. -- text alignment: 1
  330. -- font id: 0
  331. -- text size: 12
  332. -- style flags: 0
  333. -- line height: 16
  334. -- part name: go 12
  335.  
  336.  
  337. -- part 33 (button)
  338. -- low flags: 00
  339. -- high flags: 0000
  340. -- rect: left=454 top=115 right=145 bottom=489
  341. -- title width / last selected line: 0
  342. -- icon id / first selected line: 1017 / 1017
  343. -- text alignment: 1
  344. -- font id: 0
  345. -- text size: 12
  346. -- style flags: 0
  347. -- line height: 16
  348. -- part name: To Phone
  349. ----- HyperTalk script -----
  350. on mouseUp
  351.   get the selection
  352.   push card
  353.   go to stack "Phone"
  354.   dial it
  355.   pop card
  356. end mouseUp
  357.  
  358.  
  359.  
  360. -- part 35 (button)
  361. -- low flags: 00
  362. -- high flags: 0000
  363. -- rect: left=454 top=91 right=116 bottom=489
  364. -- title width / last selected line: 0
  365. -- icon id / first selected line: 17481 / 17481
  366. -- text alignment: 1
  367. -- font id: 0
  368. -- text size: 12
  369. -- style flags: 0
  370. -- line height: 16
  371. -- part name: To Address
  372. ----- HyperTalk script -----
  373. on mouseUp
  374.   get the selection
  375.   push card
  376.   visual effect iris open
  377.   go to stack "Address"
  378. end mouseUp
  379.  
  380.  
  381.  
  382. -- part 36 (button)
  383. -- low flags: 00
  384. -- high flags: 2000
  385. -- rect: left=425 top=26 right=55 bottom=460
  386. -- title width / last selected line: 0
  387. -- icon id / first selected line: 20689 / 20689
  388. -- text alignment: 1
  389. -- font id: 0
  390. -- text size: 12
  391. -- style flags: 0
  392. -- line height: 16
  393. -- part name: Home
  394. ----- HyperTalk script -----
  395. on mouseUp
  396.   visual effect zoom out
  397.   go home
  398. end mouseUp
  399.  
  400.  
  401.  
  402. -- part 37 (button)
  403. -- low flags: 00
  404. -- high flags: 0000
  405. -- rect: left=459 top=25 right=55 bottom=506
  406. -- title width / last selected line: 0
  407. -- icon id / first selected line: 24830 / 24830
  408. -- text alignment: 1
  409. -- font id: 0
  410. -- text size: 12
  411. -- style flags: 0
  412. -- line height: 16
  413. -- part name: To reminder
  414. ----- HyperTalk script -----
  415. on mouseUp
  416.   go to last card of bkgnd "Reminder"
  417. end mouseUp
  418.  
  419.  
  420.  
  421. -- part 38 (button)
  422. -- low flags: 00
  423. -- high flags: 2006
  424. -- rect: left=32 top=248 right=261 bottom=57
  425. -- title width / last selected line: 0
  426. -- icon id / first selected line: 0 / 0
  427. -- text alignment: 1
  428. -- font id: 0
  429. -- text size: 12
  430. -- style flags: 0
  431. -- line height: 16
  432. -- part name: go 13
  433.  
  434.  
  435. -- part 39 (button)
  436. -- low flags: 00
  437. -- high flags: 2006
  438. -- rect: left=32 top=261 right=274 bottom=57
  439. -- title width / last selected line: 0
  440. -- icon id / first selected line: 0 / 0
  441. -- text alignment: 1
  442. -- font id: 0
  443. -- text size: 12
  444. -- style flags: 0
  445. -- line height: 16
  446. -- part name: go 14
  447.  
  448.  
  449. -- part 40 (button)
  450. -- low flags: 00
  451. -- high flags: 2006
  452. -- rect: left=32 top=274 right=287 bottom=57
  453. -- title width / last selected line: 0
  454. -- icon id / first selected line: 0 / 0
  455. -- text alignment: 1
  456. -- font id: 0
  457. -- text size: 12
  458. -- style flags: 0
  459. -- line height: 16
  460. -- part name: go 15
  461.  
  462.  
  463. -- part 41 (button)
  464. -- low flags: 00
  465. -- high flags: 0000
  466. -- rect: left=454 top=144 right=175 bottom=493
  467. -- title width / last selected line: 0
  468. -- icon id / first selected line: 21209 / 21209
  469. -- text alignment: 1
  470. -- font id: 0
  471. -- text size: 12
  472. -- style flags: 0
  473. -- line height: 16
  474. -- part name: Weekly
  475. ----- HyperTalk script -----
  476. on mouseUp
  477.   visual zoom out
  478.   go to stack "Datebook"
  479.   goWeekly the seconds
  480. end mouseUp
  481.  
  482.  
  483.  
  484.  
  485. -- part 42 (button)
  486. -- low flags: 00
  487. -- high flags: 0000
  488. -- rect: left=454 top=203 right=238 bottom=494
  489. -- title width / last selected line: 0
  490. -- icon id / first selected line: 22855 / 22855
  491. -- text alignment: 1
  492. -- font id: 0
  493. -- text size: 12
  494. -- style flags: 0
  495. -- line height: 16
  496. -- part name: Yearly
  497. ----- HyperTalk script -----
  498. on mouseUp
  499.   visual zoom out
  500.   go to stack "Datebook"
  501. end mouseUp
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508. -- part 43 (button)
  509. -- low flags: 00
  510. -- high flags: A000
  511. -- rect: left=170 top=281 right=328 bottom=309
  512. -- title width / last selected line: 0
  513. -- icon id / first selected line: 20965 / 20965
  514. -- text alignment: 1
  515. -- font id: 0
  516. -- text size: 12
  517. -- style flags: 0
  518. -- line height: 16
  519. -- part name: Create a New ReminderCard
  520. ----- HyperTalk script -----
  521. on mouseUp
  522.   visual iris open very slowly
  523.   set lockScreen to true
  524.   go last card
  525.   doMenu "New Card"
  526.   set lockScreen to false
  527. end mouseUp
  528.  
  529.  
  530.  
  531. -- part 44 (button)
  532. -- low flags: 00
  533. -- high flags: 8004
  534. -- rect: left=165 top=5 right=38 bottom=321
  535. -- title width / last selected line: 0
  536. -- icon id / first selected line: 0 / 0
  537. -- text alignment: 1
  538. -- font id: 0
  539. -- text size: 12
  540. -- style flags: 0
  541. -- line height: 16
  542. -- part name: Plan—Of—Day for...
  543. ----- HyperTalk script -----
  544. on mouseUp
  545.   ask "Plan of the Day for which day"
  546.   put it into whichDay
  547.   visual wipe up
  548.   set cursor to 4
  549.   put empty into field "Actions"
  550.   put empty into field "Done"
  551.   put empty into field "Links"
  552.   convert whichDay to long date
  553.   get whichDay
  554.   put it into field id 6  -- field date
  555.   convert it to seconds
  556.   put it into today
  557.   put 60*60*24 into oneDay
  558.   put 1 into lineNumber
  559.   repeat with x = 2 to the number of cards
  560.     get (field id 1 of card x)
  561.     convert it to seconds
  562.     if it is empty then next repeat
  563.     if it = today and (field "Completed" of card x) is empty then
  564.       put (field "Abstract" of card x) into line lineNumber of field "Actions"
  565.       put (the name of card x) into line lineNumber of field "Links"
  566.       add 1 to lineNumber
  567.     end if
  568.   end repeat
  569.   show background button id 19
  570. end mouseUp
  571.  
  572.  
  573.  
  574.  
  575.  
  576. -- part 45 (button)
  577. -- low flags: 00
  578. -- high flags: 0000
  579. -- rect: left=12 top=285 right=326 bottom=86
  580. -- title width / last selected line: 0
  581. -- icon id / first selected line: 6460 / 6460
  582. -- text alignment: 1
  583. -- font id: 0
  584. -- text size: 12
  585. -- style flags: 0
  586. -- line height: 16
  587. -- part name: Yesterday
  588. ----- HyperTalk script -----
  589. on mouseUp
  590.   visual wipe right
  591.   get field id 6
  592.   convert it to seconds
  593.   put it into whichDay
  594.   put (60*60*24) into oneDay
  595.   subtract oneDay from whichDay
  596.   set cursor to 4
  597.   put empty into field "Actions"
  598.   put empty into field "Done"
  599.   put empty into field "Links"
  600.   convert whichDay to long date
  601.   get whichDay
  602.   put it into field id 6  -- field date
  603.   convert it to seconds
  604.   put it into today
  605.   put 60*60*24 into oneDay
  606.   put 1 into lineNumber
  607.   repeat with x = 2 to the number of cards
  608.     get (field id 1 of card x)
  609.     convert it to seconds
  610.     if it is empty then next repeat
  611.     if it = today and (field "Completed" of card x) is empty then
  612.       put (field "Abstract" of card x) into line lineNumber of field "Actions"
  613.       put (the name of card x) into line lineNumber of field "Links"
  614.       add 1 to lineNumber
  615.     end if
  616.   end repeat
  617.   get field id 6
  618.   convert it to seconds
  619.   put it into thisDay
  620.   get the date
  621.   convert it to seconds
  622.   if it = thisDay then
  623.     hide background button id 19
  624.   else
  625.     show background button id 19
  626.   end if
  627. end mouseUp
  628.  
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635. -- part 46 (button)
  636. -- low flags: 00
  637. -- high flags: 0000
  638. -- rect: left=416 top=289 right=322 bottom=495
  639. -- title width / last selected line: 0
  640. -- icon id / first selected line: 6179 / 6179
  641. -- text alignment: 1
  642. -- font id: 0
  643. -- text size: 12
  644. -- style flags: 0
  645. -- line height: 16
  646. -- part name: Tomorrow
  647. ----- HyperTalk script -----
  648. on mouseUp
  649.   visual wipe left
  650.   get field id 6
  651.   convert it to seconds
  652.   put it into whichDay
  653.   put (60*60*24) into oneDay
  654.   add oneDay to whichDay
  655.   set cursor to 4
  656.   put empty into field "Actions"
  657.   put empty into field "Done"
  658.   put empty into field "Links"
  659.   convert whichDay to long date
  660.   get whichDay
  661.   put it into field id 6  -- field date
  662.   convert it to seconds
  663.   put it into today
  664.   put 60*60*24 into oneDay
  665.   put 1 into lineNumber
  666.   repeat with x = 2 to the number of cards
  667.     get (field id 1 of card x)
  668.     convert it to seconds
  669.     if it is empty then next repeat
  670.     if it = today and (field "Completed" of card x) is empty then
  671.       put (field "Abstract" of card x) into line lineNumber of field "Actions"
  672.       put (the name of card x) into line lineNumber of field "Links"
  673.       add 1 to lineNumber
  674.     end if
  675.   end repeat
  676.   get field id 6
  677.   convert it to seconds
  678.   put it into thisDay
  679.   get the date
  680.   convert it to seconds
  681.   if it = thisDay then
  682.     hide background button id 19
  683.   else
  684.     show background button id 19
  685.   end if
  686. end mouseUp
  687.  
  688.  
  689.  
  690.  
  691.  
  692.  
  693.  
  694. -- part 47 (button)
  695. -- low flags: 00
  696. -- high flags: 0000
  697. -- rect: left=454 top=174 right=204 bottom=497
  698. -- title width / last selected line: 0
  699. -- icon id / first selected line: 15972 / 15972
  700. -- text alignment: 1
  701. -- font id: 0
  702. -- text size: 12
  703. -- style flags: 0
  704. -- line height: 16
  705. -- part name: Monthly
  706. ----- HyperTalk script -----
  707. on mouseUp
  708.   visual zoom out
  709.   go to stack "Monthly Calendar"
  710. end mouseUp
  711.  
  712.  
  713.  
  714.  
  715. -- part 49 (button)
  716. -- low flags: 00
  717. -- high flags: 2000
  718. -- rect: left=454 top=237 right=285 bottom=495
  719. -- title width / last selected line: 0
  720. -- icon id / first selected line: 1007 / 1007
  721. -- text alignment: 1
  722. -- font id: 0
  723. -- text size: 12
  724. -- style flags: 0
  725. -- line height: 16
  726. -- part name: Print
  727. ----- HyperTalk script -----
  728. on mouseUp
  729.   answer "What do you wish to print?" with "Cancel" or "Print Card" or "Print All"
  730.   if it is "Print All" then
  731.     ask "Print How Many Days?" with 1
  732.     put it into numOfDays
  733.     set lockScreen to true
  734.     open printing with dialog
  735.     repeat with y = 1 to numOfDays
  736.       get the number of lines of field id 18
  737.       put it into thisNum
  738.       print this card
  739.       repeat with x = 1 to thisNum
  740.         get line x of field id 18
  741.         go it
  742.         print this card
  743.         go card id 2898
  744.       end repeat
  745.       send mouseUp to bkgnd button id 46  --"Tomorrow"
  746.     end repeat
  747.     close printing
  748.     set lockScreen to false
  749.   else
  750.     if it is "Cancel" then
  751.       close printing
  752.       exit mouseUp
  753.     else
  754.       if it is "Print Card" then
  755.         doMenu "Print Card"
  756.       end if
  757.     end if
  758.   end if
  759. end mouseUp
  760.  
  761.  
  762.  
  763. -- part 48 (field)
  764. -- low flags: 81
  765. -- high flags: 0002
  766. -- rect: left=16 top=37 right=316 bottom=487
  767. -- title width / last selected line: 0
  768. -- icon id / first selected line: 0 / 0
  769. -- text alignment: 1
  770. -- font id: 0
  771. -- text size: 12
  772. -- style flags: 0
  773. -- line height: 16
  774. -- part name: ©Copyright
  775. ----- HyperTalk script -----
  776. on mouseUp
  777.   hide field id 48
  778. end mouseUp
  779.  
  780.  
  781.  
  782.